package model;

import controller.Calculator;

/**
 * @author Alexander Müller
 * 
 */
public class Octet {

	private String Bits;
	private int BitValue;

	public Octet(int decimal) {

		BitValue = decimal;
		Bits = Calculator.getInstance().convertDecimalToBinary(decimal);

	}

	public Octet(String Bits) {
		this.Bits = Bits;
		BitValue = Calculator.getInstance().convertBinaryToDecimal(Bits);
	}

	public String getBits() {
		return Bits;
	}

	public void setOctet(String fourBits) {
		this.Bits = fourBits;
	}

	public int getBitValue() {
		return BitValue;
	}

	public void setBitValue(int BitValue) {
		this.BitValue = BitValue;
	}

}
